<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>简版vue</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
</head>

<body>
    <div id="app">
        <h1>差表达式</h1>
        <h3>{{ msg }}</h3>
        <h3>{{ count }}</h3>
        <h1>v-text</h1>
        <div v-text="msg"></div>
        <h1>v-model</h1>
        <input type="text" v-model="msg">
        <input type="text" v-model="count">
    </div>

    <script type="module">
        import Vue from "./js/vue.js"
        
        let vm = new Vue({
            el: '#app',
            data: {
                msg: 'hello world',
                count: 20,
                person: {
                    name: 'wang yi',
                    age: 18
                }
            }
        })
    </script>
</body>
</html>